<template>
  <div>
    <button @click="login">登录</button>
  </div>
</template>

<script>
export default {
  methods: {
    login() {
      sessionStorage.setItem('token', 'aaaaaaaaaaaa')
      this.$router.push('/home')
    }
  }
}
</script>

<style>

</style>